<?php

$func_name = "object_del.php";

if ('POST' == $_SERVER['REQUEST_METHOD']) {
    //Formulardaten erhalten
    log_message('[' . $func_name . ']' . POST_RECIVED);
    
    $id = $_POST['obj_id'];
    
    $result = del_object($id);
} else {
log_message('[' . $func_name . ']' . "Keine Daten erhalten.");
$result = false;
}
log_message('[' . $func_name . '] Ergebnis: ' . $result);
unset($func_name);
$to_tpl = array();
$to_tpl["filename"] = 'output_json.tpl';
$to_tpl["data"] = array();
$to_tpl["data"]['result'] = $result;
return $to_tpl;


?>